package com.zscat.mallplus.center.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.zscat.mallplus.center.BaseController;
import com.zscat.mallplus.center.entity.CenterOrderRecharge;
import com.zscat.mallplus.center.service.ICenterOrderRechargeService;
import com.zscat.mallplus.utils.CommonResult;

@RestController
@RequestMapping("/center/order/recharge")
public class CenterOrderRechargeController extends BaseController {
	@Autowired
	private ICenterOrderRechargeService centerOrderRechargeService;

	/**
	 * 查询订单-会员充值列表
	 */
	@GetMapping("/list")
	public Object list(CenterOrderRecharge centerOrderRecharge,
			@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
			@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
		List<CenterOrderRecharge> list = centerOrderRechargeService.selectCenterOrderRechargeList(centerOrderRecharge,
				pageNum, pageSize);
		return new CommonResult().success(list);
	}

}
